#!/bin/sh -e
# postinst script for wesnoth
# copyright 2008 by Gerfried Fuchs <rhonda@debian.at>
# Licenced the same way as wesnoth itself

if dpkg --compare-versions "$version" lt-nl 1:1.4.1-2 \
	&& [ "$1" = configure ] \
	&& [ ! -L /usr/share/doc/wesnoth-unstable ] \
	&& [ -d /usr/share/doc/wesnoth-unstable ] \
	&& rmdir /usr/share/doc/wesnoth-unstable 2>/dev/null ; then

	ln -s wesnoth-unstable-data /usr/share/doc/wesnoth-unstable
fi

#DEBHELPER#
